package com.colin.app.activity.other.hierarchy;

import com.colin.app.R;
import com.colin.app.activity.other.OtherContract;
import com.colin.app.activity.other.OtherPresenterImpl;
import com.colin.app.app.AppActivity;
import com.colin.app.bean.DemoBean;

public class HierarchyViewerActivity extends AppActivity implements OtherContract.OtherView {

    private OtherContract.OtherPresenter mOtherPresenter = null;

    @Override
    protected void onDestroy() {
        if (null != mOtherPresenter) {
            mOtherPresenter.destroy();
            mOtherPresenter = null;
        }
        super.onDestroy();
    }

    @Override
    public void initPresenter() {
        DemoBean demoBean = getIntent().getExtras().getParcelable("clazz");
        mOtherPresenter = new OtherPresenterImpl(this, this, demoBean);
    }


    @Override
    public int initViewLayoutID() {
        return R.layout.activity_hierarchy_viewer;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {
        mOtherPresenter.setData();
    }



}
